<!--
 * @Author: your name
 * @Date: 2021-08-06 16:11:57
 * @LastEditTime: 2021-08-06 16:17:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\3-html&css\day05\5-继承.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>继承</title>
    <style>
        .app {
            color:seagreen;
            border:1px solid pink;
        }
        p {
            /* 将可继承属性改为不可继承属性 */
            color:initial;
            /* 将不可继承属性改为可继承属性 */
            border:inherit;
            /* 默认情况 */
            color:unset;
        }
    </style>
</head>
<body>
    <div class="app">
        mydiv
        <p class="mydiv" id="myduo" >好好学习天天向上</p>
        <br/>
        好好学习天天向上
       
    </div>
</body>
</html>